home *** CD-ROM | disk | FTP | other *** search
-
-
-
-
-
-
-
-
-
-
-
-
-
- C O D E C O U N T F O R ' C '
-
- A Code Analysis and Documentation Tool For 'C' Programmers
-
- Version 1.0
-
- January 1990 Release
-
- USERS MANUAL
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Enterprise Software
- 7654 Quail Run Lane
- Manassas, VA 22110
-
- (703) 335-2781
-
- Compuserve ID # 71041,3714
-
-
-
-
-
-
-
-
- Copyright (C) 1990 Enterprise Software. All rights reserved.
-
-
-
-
-
-
-
-
- Code Count For 'C' - Version 1.0
-
-
-
- TABLE OF CONTENTS
-
-
-
- 1. Introduction: ....................................... 1
- 1.1 What is Code Count. ................................ 1
- 2. The Shareware Concept: .............................. 2
- 2.1 Why Register Code Count ? .......................... 2
- 2.2 License. ............................................ 3
- 2.3 Warranty. ........................................... 3
- 2.4 Registration. ....................................... 3
- 3. Code Count Files: ................................... 4
- 3.1 Files Contained In CODECNT1.EXE or CODECNT1.ZIP. .... 4
- 4. Using Code Count: ................................... 4
- 4.1 Options. ........................................... 4
- 4.2 File spec. ......................................... 5
- 4.3 @list. ............................................. 5
- 4.4 Code Count Output. ................................. 5
- 4.5 Example use. ....................................... 6
- 5. User Support: ....................................... 6
- Registration form: ...................................... 8
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Code Count For 'C' - Version 1.0
-
-
-
- 1. Introduction:
- ================
-
- Welcome to Code Count for 'C' an analysis and
- documentation tool for 'C' programmers.
-
- 1.1 What is Code Count.
- -----------------------
-
- Code Count for 'C' is a tool which provides some useful
- statistics for managing large programming effects in the 'C'
- programming language. Code Count scans 'C' source code files
- and provides a breakdown of executable code versus non-
- executable code. This breakdown is in both a count of lines
- and a count of characters. Non-executable code is broken
- down as comments, blanks, control characters (line feed,
- carriage return, and end of file), and tabs. Code Count also
- provide a ratio of comments to executables.
-
- The Following is a sample printout from Code Count:
-
- File: SAMPLE.C
- Lines Characters
- ==========================================================
- | Total | 50 | 1981 |
- |========================================================|
- | Executable + mixed | 36 | 793 |
- |--------------------------------------------------------|
- | Comment + mixed | 15 | 429 |
- |--------------------------------------------------------|
- | Blank | 3 | 660 |
- |--------------------------------------------------------|
- | Mixed lines (C. & E.) | 4 | |
- |--------------------------------------------------------|
- | LF+CR+EOF characters | | 99 |
- |--------------------------------------------------------|
- | Tab characters | | 0 |
- |========================================================|
- | Ratio (C. : E.) | 1:2.4 | 1:1.8 |
- ==========================================================
-
- The obvious use of Code Count is to provide a final
- tally at the end of a programming project, be it total lines,
- executable lines, or what ever. Being able to equate lines
- of code to the effort expended will prove useful for
- estimating or bidding your next job.
-
- You will also find that Code Count is an excellent tool
- for keeping track of your programmers for a project that is
- in progress. By having your programming staff turn in their
- source code every few days you can quickly see the amount of
- work that has been accomplished since your last check. Keep
- in mind that lines of code are not necessarily a good
- indicator of progress, but these numbers can alert you to
-
-
- Copright (C) 1990 Enterprise Software page 1
-
-
-
-
-
- Code Count For 'C' - Version 1.0
-
-
-
- problems that need further investigation.
- One of the biggest problems in a software development
- team is proper documentation. Documentation (of code) is
- often left as a task to be done after the system is up and
- running. This can prove to be a fatal mistake, particularly
- on a large project where the exact operation of code written
- months previously is all but forgotten. Code Counts ratios
- of comments to executables can help you spot those
- programmers that are leaving the documentation out. A quick
- look at the statistics produced by Code Count will even
- indicate when the comments are heavily filled with blank
- space.
-
- 2. The Shareware Concept:
- =========================
-
- Code Count is being distributed under the Shareware
- concept. If you are not familiar with the Shareware concept,
- it is a method of distributing and selling high quality
- computer software at prices far less then you would have to
- pay for similar products in a retail software store. The
- cost to you is low because the cost of distribution and
- marketing is reduced for the developer. One of the most
- attractive features about Shareware is that you may try the
- product before you buy the product. Code Count for instance
- has a 30 day trial period before you are requested to
- register or discontinue use.
-
- Shareware is distributed primarily through national and
- local networks of electronic bulletin boards. The only cost
- to you to try a Shareware product is the online time charged
- while downloading the software. Other ways of obtaining
- Shareware products are through the many mail order services
- who will send you the programs for a handling charge. Also
- computer user groups often maintain a library of the best
- Shareware for their members. You may also buy Shareware
- products from the author's directly.
-
- Code Count's distribution is increased with your help.
- You are encouraged to share the program with friends and
- co-workers. It is only natural to want to share an
- especially good find with your friend. If you have access to
- a local electronic bulletin board that does not already have
- Code Count on it most systems operators will credit you with
- additional connect time for uploading new programs. As you
- can see helping to distribute Code Count can be beneficial to
- you as well as to me. The consideration that Enterprise
- Software asks is that when distributing Code Count please
- distribute all files in their original form. Please do not
- delete, add or modify any files in any way.
-
- 2.1 Why Register Code Count ?
- -----------------------------
-
-
-
- Copright (C) 1990 Enterprise Software page 2
-
-
-
-
-
- Code Count For 'C' - Version 1.0
-
-
-
- By registering Code Count you derive both seen and
- unseen benefits. The unseen benefits are that you support
- the Shareware concept and insure its continued use for
- software distribution. More directly you support the effort
- put forth on Code Count and encourage the continued
- enhancement of a product that you already like.
-
- The seen benefits are your contact with Enterprise
- Software. As a registered user you will be notified when
- there are new releases of Code Count. Registered users are
- welcome to contact Enterprise Software for technical support.
- Unlike many large software producers Enterprise Software
- welcomes your comments and will even attempt to provide
- custom features if so requested.
-
- 2.2 License.
- ------------
-
- You are granted a limited licence to use and examine
- Code Count on a 30 day trial basis to determine if Code Count
- is suitable for your needs. If you find Code Count useful
- and continue to use it on a regular basis, you should
- complete and return the registration form along with the
- indicated license/registration fee to Enterprise Software.
-
- Registration of a single user copy entitles you to use
- Code Count for your personal or business use. Use is however
- restricted to one (single user) Personal Computer at a time.
- You are granted permission to install Code Count on multiple
- machines if you can guarantee that the software will not be
- used on multiple machines simultaneously.
-
- Single copies of Code Count may be installed on multiple
- machines or accessed by multiple users, if and only if the
- proper multiple use license has been purchased. Use and or
- installation will be restricted to the quantities specified
- in your specific license.
-
- 2.3 Warranty.
- -------------
-
- CODE COUNT AND ALL ACCOMPANYING MATERIALS ARE PROVIDED
- "AS IS" WITHOUT WARRANTY OF ANY KIND. YOU AS THE USER ASSUME
- ALL RISKS FOR USE OF THIS PRODUCT. ENTERPRISE SOFTWARE WILL
- IN NO EVENT BE HELD LIABLE FOR ANY DAMAGES INCURRED BY USING
- THIS PRODUCT, INCLUDING BUT NOT LIMITED TO DAMAGES FOR LOSS
- OF BUSINESS PROFITS, LOSS OF SAVINGS, LOSS OR DAMAGE OF
- MACHINERY AND/OR INFORMATION.
-
- BY USING CODE COUNT, YOU AGREE TO THE ABOVE CONDITIONS.
-
- 2.4 Registration.
- -----------------
-
-
-
- Copright (C) 1990 Enterprise Software page 3
-
-
-
-
-
- Code Count For 'C' - Version 1.0
-
-
-
- You may become a registered user of Code Count for $10.
- Upon receipt of your registration fee you will be sent the
- latest release of Code Count. You will also receive a
- personal serial number which will allow you to contact
- Enterprise Software for technical support and allow you to
- purchase upgrades when they are released.
-
- Businesses and other large organizations that would
- like to use Code Count on multiple installations or with
- multiple user access may contact Enterprise Software to
- negotiate a site-license. Site licenses will provide a
- considerable saving over the purchase of multiple single user
- copies.
-
-
- 3. Code Count Files:
- ====================
-
- The following subsection lists the files that you should
- have on your distribution disk.
-
- Code Count will be distributed in a compressed format.
- The file that you receive will depend on the source that you
- obtained Code Count from. If you received Code Count
- directly from Enterprise Software you will have the file
- CODECNT1.EXE on your distribution disk. This is a self
- extracting archive file which will produce all the files
- needed for Code Count when run. If you received Code Count
- from a bulletin board system you will probably have the file
- CODECNT1.ZIP. This is an archived file and requires the
- proper decompression program to be used. The bulletin board
- that you received it from should have the proper
- decompression program.
-
- 3.1 Files Contained In CODECNT1.EXE or CODECNT1.ZIP.
- ----------------------------------------------------
-
- C-CNT.EXE - The Code Count program.
- C-CNT.DOC - The Code Count Documentation file
- REGISTER.FRM - Registration form
-
- 4. Using Code Count:
- ===================
-
- The syntax for using Code Count is as follows:
-
- C-CNT [option(s)...] [@list or file spec(s)...]
-
- 4.1 Options.
- ------------
-
- There are three options that may be used with Code
- Count. The options must appear before the list or any file
- specs. Options must be separated from one another by a space
-
-
- Copright (C) 1990 Enterprise Software page 4
-
-
-
-
-
- Code Count For 'C' - Version 1.0
-
-
-
- and immediately preceded by either a dash (-) or a slash (/).
-
- The options are as follows:
-
- -H = displays the help information.
-
- -M = causes Code Count to look for the Microsoft C 5.1 non
- standard double slash (//) comment.
-
- -N = causes Code Count to use standard ASCII characters in
- its output. By default Code Count will use the extended
- graphics characters (which some printers do not print
- correctly).
-
-
- 4.2 File spec.
- --------------
-
- File spec. is an abbreviation for file specification.
- This is simply the name of the file that Code Count is to
- scan. File specs. may have a full path and drive designator.
- Wild cards (*,?) may also be used. You may type as many file
- specs. as will fit on the command line (DOS limit 127
- characters). Multiple file specs. must be separated by a
- space.
-
-
- 4.3 @list.
- ----------
-
- If you cannot fit all of your file specs. on the command
- line you may place them in a list file. An ampersand (@) on
- the command line tells Code Count that the name immediately
- following it is a list file. Code Count will read the file
- specs. in the list file and scan each file in it.
-
- A list file is an ASCII file with one file spec. per
- line. File specs may have a full path and drive designator
- and may use wild cards (*,?).
-
- List files are very useful for checking the statistics
- for all the files that make up an executable program. It is
- also useful to keep separate list files for individual
- programmers. That way when multiple programmers have been
- working on a single executable you will only get the
- statistics on the parts that one programmer worked on.
-
- You cannot mix the use of file specs. and a list file.
- Use either one or the other.
-
- 4.4 Code Count Output.
- ----------------------
-
- Code Count produces a table for each file specified. If
-
-
- Copright (C) 1990 Enterprise Software page 5
-
-
-
-
-
- Code Count For 'C' - Version 1.0
-
-
-
- you have used multiple file specs or wild cards, Code Count
- will also produce a summary table.
-
- Output from Code Count may be redirected with the DOS
- redirection symbol (>) to a file or printer.
-
- 4.5 Example use.
- ----------------
-
- C-CNT -N tmenu.c sound.c tmenu.h > prn
-
- this would scan the files "tmenu.c", "sound.c" and
- "tmenu.h". The output would be sent to the PRN device (the
- printer). Since my printer uses the Epson printer character
- set -N turns of the use of the ASCII graphic characters.
-
- C-CNT -M \msc\porject\*.c \msc\project\*.h > out.txt
-
- This would scan all of the files in the \msc\project
- directory that have an extension of .c or .h. Since the code
- was written for Microsoft C version 5.1 the -M option is used
- to allow the "//" comment delimiter. The output will be
- redirected to a file called out.txt.
-
- Now let's make a list file and call it tmenu.lst. The
- list would look like this:
-
- Tmenu.c
- Sound.c
- Message.c
- Help.c
- mouse.inc
- tmenu.h
-
- You would use this list file like this:
-
- C-CNT @tmenu.lst > tmenu.cnt
-
- This example uses the list file tmenu.lst and scans each
- file named in the list. The output is redirected to the file
- tmenu.cnt.
-
- 5. User Support:
- ================
-
- For user support on Code Count for 'C' call Enterprise
- Software at (703) 335-2781. Calls are welcome 7 days a week.
- You may speak directly to Scott Ward on weekends and weekday
- evenings. For weekday day time calls you may leave a message
- and your calls will be returned.
-
- You may also contact Enterprise Software through
- Easyplex on Compuserve. Enterprise Software's Compuserve ID
- # is 71041,3714.
-
-
- Copright (C) 1990 Enterprise Software page 6
-
-
-
-
-
- Code Count For 'C' - Version 1.0
-
-
-
-
- Support number: (703) 335-2781
-
- day time even (after 7pm)
- ==================================
- weekdays | leave message | in person |
- ----------------------------------
- weekends | in person | in person |
- ----------------------------------
-
- Compuserve ID # 71041,3714
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Copright (C) 1990 Enterprise Software page 7
-
-
-
-
-
- Code Count For 'C' - Version 1.0
-
-
-
- Registration form:
- ------------------
-
- To become a registered user of Code Count, fill out the
- information below and mail this form along with your
- licensing fee to Enterprise Software.
-
- Name: _____________________________________________________
-
- Title: ____________________________________________________
-
- Company: __________________________________________________
-
- Address: __________________________________________________
-
- __________________________________________________
-
- City: _____________________ State: _____ Zip: _____________
-
- Phone Work:(___) ___ - _____ Home:(___) ___ - ____
-
- I the under signed agree to adhere to the licensing terms
- for the use of Code Count for 'C' Version 1.0. I further
- agree to the disclaimer of all warranties and the
- restrictions on copying Code Count.
-
- ___________________________________ ___________________
- SIGNED DATE
-
- The latest versions of Code Count will be sent to you on a 5
- 1/4" disk. Virginia residents please include 5% sales tax.
- For a multi user and/or multiple copy license contact
- Enterprise Software before mailing this form.
-
- +---------------------------------------------------+
- | Description | Cost per | Quantity | Total |
- | | copy | | Cost |
- +--------------------+----------+----------+--------+
- | Code Count Package | $10.00 X = |
- +--------------------+----------+----------+--------+
- | Virginia residents add 5% sales tax | |
- +------------------------------------------+--------+
- Total | |
- +--------+
-
- Make check or money order payable to:
- Scott R. Ward, Enterprise Software
-
- Send all items to:
-
- Enterprise Software
- 7654 Quail Run Lane
- Manassas, VA 22110
-
-
-
- Copright (C) 1990 Enterprise Software page 8
-
-
-
-